package com.acminds.fotoporter.persistence.entities;

import java.io.Serializable;
import javax.persistence.*;
import java.sql.Timestamp;
import java.math.BigDecimal;
import java.util.List;


/**
 * The persistent class for the ITEM database table.
 * 
 */
@Entity
@Table(name="ITEM")
public class Item extends com.acminds.fotoporter.persistence.BaseDTO implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@Column(name="ITEM_ID")
	private int itemId;

	@Column(name="BASE_PRICE")
	private BigDecimal basePrice;

	@Column(name="CREATE_DATE")
	private Timestamp createDate;

	@Column(name="ITEM_DESC")
	private String itemDesc;

	@Column(name="ITEM_NAME")
	private String itemName;

	@Column(name="STATUS")
	private int status;

	//bi-directional many-to-one association to Image
	@OneToMany(mappedBy="item")
	private List<Image> images;

	//bi-directional many-to-one association to Category
    @ManyToOne
	@JoinColumn(name="CATEGORY_ID")
	private Category category;

	//bi-directional many-to-one association to UserInfo
    @ManyToOne
	@JoinColumn(name="CREATED_BY")
	private UserInfo userInfo;

	//bi-directional many-to-one association to ItemFeature
	@OneToMany(mappedBy="item")
	private List<ItemFeature> itemFeatures;

    public Item() {
    }

	public int getItemId() {
		return this.itemId;
	}

	public void setItemId(int itemId) {
		this.itemId = itemId;
	}

	public BigDecimal getBasePrice() {
		return this.basePrice;
	}

	public void setBasePrice(BigDecimal basePrice) {
		this.basePrice = basePrice;
	}

	public Timestamp getCreateDate() {
		return this.createDate;
	}

	public void setCreateDate(Timestamp createDate) {
		this.createDate = createDate;
	}

	public String getItemDesc() {
		return this.itemDesc;
	}

	public void setItemDesc(String itemDesc) {
		this.itemDesc = itemDesc;
	}

	public String getItemName() {
		return this.itemName;
	}

	public void setItemName(String itemName) {
		this.itemName = itemName;
	}

	public int getStatus() {
		return this.status;
	}

	public void setStatus(int status) {
		this.status = status;
	}

	public List<Image> getImages() {
		return this.images;
	}

	public void setImages(List<Image> images) {
		this.images = images;
	}
	
	public Category getCategory() {
		return this.category;
	}

	public void setCategory(Category category) {
		this.category = category;
	}
	
	public UserInfo getUserInfo() {
		return this.userInfo;
	}

	public void setUserInfo(UserInfo userInfo) {
		this.userInfo = userInfo;
	}
	
	public List<ItemFeature> getItemFeatures() {
		return this.itemFeatures;
	}

	public void setItemFeatures(List<ItemFeature> itemFeatures) {
		this.itemFeatures = itemFeatures;
	}
	
}